// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import './utils/http';


import 'vant/lib/index.css';
import './assets/font/iconfont.css';

import {Row,Col,Icon,Search,Swipe, SwipeItem,
  Lazyload,Grid,GridItem,Image,Tabbar, TabbarItem,
  Tab,Tabs,Sticky,Card,Checkbox,Stepper,Button
  ,SubmitBar,Skeleton,Empty,Cell, CellGroup,Sidebar, SidebarItem ,Popup, TreeSelect,Form,Field ,Dialog } from "vant"

import store from './store'

Vue.config.productionTip = false

Vue.use(Row).use(Col).use(Icon).use(Search).use(Swipe)
  .use(SwipeItem).use(Lazyload).use(Grid).use(GridItem)
  .use(Image).use(Tabbar).use(TabbarItem).use(Tab)
  .use(Tabs).use(Sticky).use(Card).use(Stepper).use(SubmitBar)
  .use(Checkbox).use(Button).use(Skeleton).use(Empty).use(Cell)
  .use(CellGroup).use(Sidebar).use(SidebarItem).use(Popup).use( TreeSelect)
  .use(Form).use( Field).use(Dialog)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  store,
  template: '<App/>'
})
